package com.gvfish.entity;

import java.util.Set;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;


@Entity
public class Resource {


	// resourceType���� //
	//~ Instance fields ================================================================================================
	public static final String URL_TYPE = "url";
	public static final String MENU_TYPE = "menu";
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Key key;
	
	@Basic
	private String resourceType;
	
	@Basic
	private String value;
	
	@Basic
	private double position;

	@Basic
	private Set<Key> authorityList;
	//~ Constructors ===================================================================================================

	
	
	//~ Methods ========================================================================================================
	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public String getResourceType() {
		return resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public double getPosition() {
		return position;
	}

	public void setPosition(double position) {
		this.position = position;
	}

	public void setAuthorityList(Set<Key> authorityList) {
		this.authorityList = authorityList;
	}

	public Set<Key> getAuthorityList() {
		return authorityList;
	}

	
	
}
